<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-cloak指令</title>
    <style>
        [v-cloak]{
            display:none;
        }
    </style>
</head>
<body>
      <div id="root">
        <h2 v-cloak>{{name}}</h2>
      </div>
      <script type="text/javascript"  src="http://localhost:8080/resource/5s/vue.js"></script>
    </body>
     
    <script type="text/javascript">
        console.log(1)
        Vue.config.productionTip = false //阻止 vue 在启动时生成生产提示。

        new Vue({
            el:'#root',
            data:{
                name:'尚硅谷'
            }
        })

    </script>
</html>